/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.service.impl;

import com.techshop.dao.RevenueReportDao;
import com.techshop.service.RevenueReportService;
import java.util.List;

/**
 *
 * @author Hai-PC
 */
public class RevenueReportServiceImpl implements RevenueReportService
{    
    private RevenueReportDao revenueReportDao;
    
    @Override
    public List<Object[]> getRevenueAndExpenditure(int month, int year)
    {
        return revenueReportDao.getRevenueAndExpenditure(month, year);
    }
    
    @Override
    public List<Object[]> getRevenueAndExpenditureByStore(int month, int year)
    {
        return revenueReportDao.getRevenueAndExpenditureByStore(month, year);
    }
    
    public RevenueReportDao getRevenueReportDao()
    {
        return revenueReportDao;
    }

    public void setRevenueReportDao(RevenueReportDao revenueReportDao)
    {
        this.revenueReportDao = revenueReportDao;
    }

    @Override
    public List<Object[]> getInventory(int month, int year)
    {
        return revenueReportDao.getInventory(month, year);
    }
    
    @Override
    public List<Object[]> getInventoryByStore(int month, int year)
    {
        return revenueReportDao.getInventoryByStore(month, year);
    }

    @Override
    public List<Object[]> getInventoryPhone(int month, int year)
    {
        return revenueReportDao.getInventoryPhone(month, year);
    }
}